package project.DAO;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;
import project.DO.doctorDo;

import java.util.List;

@Mapper
@Service
public interface doctorDAO {
    @Insert("insert into doctor(photo,name,telephone,area) values(#{photo},#{name},#{telephone},#{area})")
    public  void doctorInsert(String photo,String name,String telephone,String area);
    @Select("select * from doctor")
    public List<doctorDo> doctorQA();
    @Select("select * from doctor where name=#{name}")
    public List<doctorDo> doctorQS(String name);
}
